const mongoose = require('mongoose')

let schems = new mongoose.Schema({
    id: Number,
    title: String,
    createTime: String,
    content: String,
    stemfrom: String,
    read: {
        type: Number,
        default: 0
    },
    star: {
        type: Number,
        default: 0
    },
    comment: {
        type: Number,
        default: 0
    },
    author: String
})
let Article = mongoose.model('articles', schems)

module.exports = Article